package Entity;

import java.io.Serializable;
import javax.persistence.*;

@Entity
@Table (name = "ItemsComandas")
public class ItemPedidoEntity implements Serializable{

	private static final long serialVersionUID = 1L;
	
	@Id
	@Column (name = "idItemsComandas")
	private int id;
	
	@Column (name = "Cantidad")
	private int cantidad;
	
	@ManyToOne
	@JoinColumn (name = "idProducto")
	private ProductoEntity producto;

	@ManyToOne
	@JoinColumn (name = "idComandas")
	private ComandaEntity comanda;
}
